﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Auction_Intranet.Models
{
    public class AddCreditModel
    {
        public int userId { get; set; }
        public int userCredit { get; set; }

        public int groupId { get; set; }

        public string groupName { get; set; }

        [Display(Name = "Credit to add")]
        [RegularExpression("([1-9][0-9]*)", ErrorMessage = "Positive number required for credit.")] 
        public int creditAdded { get; set; }

        public int creditSpent { get; set; }

        public bool ActiveMember { get; set; }
    }
}